/**
 * 人才设置
 * */
import React from 'react';
import { Row, Spin } from 'antd';
import { withRouter } from 'umi';
// import authHelper from '@/utils/auth/helper';
// import { Icon } from '@/pages/Recruitment/components';
import TalentTable from './containers/TalentTable';
// const { checkCode } = authHelper;


const Talent = () => {
    const loading = false;
    // const handleAdd = () => {};
    // const handleDelete = () => {};
    // const columns = [
    //     {
    //         title: '职位类别',
    //         dataIndex: 'positionList',
    //         ellipsis: true,
    //         render: (text, record) => <span>xx</span>
    //     },
    //     {
    //         title: '职级',
    //         dataIndex: 'positionList1',
    //         ellipsis: true,
    //         render: (text, record) => <span>xxx</span>
    //     },
    //     {
    //         title: '操作',
    //         dataIndex: 'operation',
    //         width: 100,
    //         fixed: 'right',
    //         render: (text, record) =>
    //             checkCode('office:recruitment:setting:field:delete') && (
    //                 <Row type="flex">
    //                     <Popconfirm
    //                         title="确定删除该条件吗？"
    //                         okText="确定"
    //                         cancelText="取消"
    //                         onConfirm={() => handleDelete(record?.configId)}
    //                     >
    //                         <Icon title="删除" type="DeleteIcon" onClick={() => {}} />
    //                     </Popconfirm>
    //                 </Row>
    //             )
    //     }
    // ];
    return (
        <>
            <Spin spinning={loading}>
                <Row type="flex" justify="space-between" align="middle" style={{ marginBottom: 16 }}>
                    <span style={{ fontSize: 16, color: 'rgba(0, 0, 0, 0.85)', fontWeight: 600 }}>高级库入库条件</span>
                </Row>
                <Row type="flex" justify="space-between" align="middle" style={{ marginBottom: 16 }}>
                    <div style={{ fontSize: 12, color: 'rgba(0, 0, 0, 0.65)' }}>
                        * 用于人才管理中人才库加入高级库的判断条件，配置后符合条件的职位职级才可以被添加到高级库。
                    </div>
                </Row>
                <TalentTable/>
            </Spin>
        </>
    );
};

export default withRouter(Talent);
